From bf126d71f6b850b1a104d546d5fceca14810c09f Mon Sep 17 00:00:00 2001 From: oliskoli Date: Thu, 11 Sep 2008 20:43:59 +0000 Subject: [PATCH] mapsend: Switch parameter order (size/members) of 'gbfwrite'. --- mapsend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mapsend.c b/mapsend.c index ab91003a6..a47f5b0cb 100644 --- a/mapsend.c +++ b/mapsend.c @@ -300,7 +300,7 @@ mapsend_waypt_pr(const waypoint *waypointp) if (c > 30) c = 30; gbfputc(c, mapsend_file_out); - gbfwrite(tmp, c, 1, mapsend_file_out); + gbfwrite(tmp, 1, c, mapsend_file_out); /* #, icon, status */ gbfputint32(++cnt, mapsend_file_out); @@ -374,7 +374,7 @@ mapsend_route_disp(const waypoint *waypointp) /* waypoint name */ c = waypointp->shortname ? strlen(waypointp->shortname) : 0; gbfwrite(&c, 1, 1, mapsend_file_out); - gbfwrite(waypointp->shortname, c, 1, mapsend_file_out); + gbfwrite(waypointp->shortname, 1, c, mapsend_file_out); /* waypoint number */ gbfputint32(route_wp_count, mapsend_file_out); -- 2.30.2